package com.ying.insure.health.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ying.common.utils.PageUtils;
import com.ying.common.utils.Query;

import com.ying.insure.health.dao.HealthDao;
import com.ying.insure.health.entity.HealthEntity;
import com.ying.insure.health.service.HealthService;


@Service("healthService")
public class HealthServiceImpl extends ServiceImpl<HealthDao, HealthEntity> implements HealthService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<HealthEntity> page = this.page(
                new Query<HealthEntity>().getPage(params),
                new QueryWrapper<HealthEntity>()
        );

        return new PageUtils(page);
    }

}